home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2003 December / The Sunday Times - The Month 2003-12.iso / mac / The Month DEC 03 / engine / modules / print.swf / scripts / DefineSprite_9 / frame_1 / DoAction.as
Text File  |  2003-11-04  |  833b  |  30 lines

  1. function init()
  2. {
  3.    num = _name.split("_")[2];
  4.    var nd = _parent._parent.nodeData.childNodes[num];
  5.    link = nd.attributes.link;
  6.    imageToPrint = nd.byName("image").getText();
  7.    titleFF.htmlText = nd.byName("title").getText();
  8.    titleFF.textColor = _parent._parent.DEFAULT_COLOR;
  9.    printFF.textColor = _parent._parent.SECTION_COLOR50;
  10.    imgToCheck = eval("_parent.mc_img_" + num);
  11.    trace("imgToCheck: " + imgToCheck);
  12.    intervalID = setInterval(checkLoad,300,this);
  13. }
  14. function checkLoad(mc)
  15. {
  16.    if(imgToCheck._height > 0)
  17.    {
  18.       if(!positioned)
  19.       {
  20.          trace("imgToCheck._height = " + imgToCheck._height);
  21.          positioned = true;
  22.          _parent._parent.positionElements(mc);
  23.          clearInterval(intervalID);
  24.       }
  25.    }
  26. }
  27. printFF._visible = false;
  28. init();
  29. delete init;
  30.